
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<?php
		
    /*session_start();
		
    ob_start();*/
	
    $data=$_GET["q"];
    include('class.mysql.php');
    $mydb = new mysql();
    $connection = $mydb->Connect();
    $sql="select bidang,kode from bidang";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    $bidang[]="Pilih Rumpun/Bidang Studi";
    $kode[]="XXX";
    //$kabupaten[]="Pilih kota2";
    while($array= mysql_fetch_row($query))
    {
        $bidang[]=$array[0];
        $kode[]=$array[1];
    }
    //echo $data.$kabupaten[2];
    //ob_end_flush();
    // onchange="ChangeNoReg_updatelist(this.value)"
    $stTemp = '<select name="bidang"  onchange="update_bidang(this.value);">';
    $i=0;
    while($kode[$i]!='')
    {
        $stTemp .= '<option value="'. $kode[$i].'">' . $bidang[$i] . '</option>';
        $i++;
    }
    $stTemp .= '</select>';
    echo    $stTemp;
?>
</body>

